<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<WebClient.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectReply
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<span class="AdminTitle" style="color:#cc0000;">Reply Management</span>
	(<a href="<%= Url.Action("Index", "Home") %>" class="AdminPageText">
		<%= WebConfiguration.SiteName  %>
	</a>|
	<a href="<%= Url.Action("LogOff", "Account") %>" class="AdminPageText">
		LogOut
	</a>)
	<br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<script type="text/javascript">
		<% if (Model.ReplyModel.InfoText != null && Model.ReplyModel.InfoText != ""){ %>
			alert('<%= Model.ReplyModel.InfoText %>');
		<% } %>
	</script>
	<div id="PartialDiv">
		<% Html.RenderPartial("Templates/TH_ListReply", Model); %>
	</div>
	<% using (Html.BeginForm("InsertReply", "Admin", FormMethod.Post, new { onsubmit = "return ValidateReply();" }))
	{ %>
        <%
            HttpCookie SlmMemberCookie = new HttpCookie("SLMFMembers");
            SlmMemberCookie = HttpContext.Current.Request.Cookies["SLMFMembers"];
            string strUser = "";
            if (SlmMemberCookie != null && SlmMemberCookie.Value != "" &&
                 SlmMemberCookie.Value != null)
            {
                strUser = SlmMemberCookie.Value.ToString();
            }
        %>
		<div style="padding-top: 40px">
			<span style="font-size:18px; font-weight:bold;">Add New Reply</span>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Content: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextArea("Reply_Content", "", new { @style = "width: 590px; height: 100px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
								<p>
                                    <input type="hidden" name="Reply_IDContact" value="<%= Model.ReplyModel.ReferKeys.IDContact %>" />
                                    <input type="hidden" name="Reply_UserReply" value="<%= strUser %>" />
                                    <input type="hidden" name="Reply_Subject" value="<%= Model.ContactModel.GetModel.LstObjModel[0].Subject %>" />
                                    <input type="hidden" name="Reply_Detail" value="<%= Model.ContactModel.GetModel.LstObjModel[0].Detail %>" />
                                    <input type="hidden" name="Reply_Email" value="<%= Model.ContactModel.GetModel.LstObjModel[0].Email %>" />
									<input type="submit" value="Add New" />
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
</asp:Content>
